<include file="Public:head"/>
<div class="content">
	<div class="cLineB">
              <h4 class="left">推送消息</h4>
              <div class="clr"></div>
          </div>
          <div class="cLine">
              <div class="pageNavigator left">
             	您可以向个人或者一个分组发送消息
            </div>
            <div class="clr"></div>
          </div>

	<div class="cLineC" style="line-height: 32px;">
		注意：根据微信协议规定，您发送消息的对象必须在48小时内与您互动过（即给您发送给消息），才能发送成功
	</div>

	<div class="msgWrap">
	<form action="{cms>:U('SubscribeGroup/postMsg')}" enctype="application/x-www-form-urlencoded" method="post">
		
		<input name='type' id='type' type="hidden" value="{cms>$type}"/>
		<input name='oid' id='oid' type="hidden" value="{cms>$id}"/>
		
		<table class="userinfoArea" border="0" cellSpacing="0" cellPadding="0" width="100%">
			<if condition="$type eq 'group'">
				<tr>
            	<th style="width:120px" valign="top">发送对象：</th>
            	<td>"{cms>$model.groupname}"分组下的所有用户</td>
            	</tr>
            	
            <elseif condition="$type eq 'personal'" />
            	<tr>
            	<th style="width:120px" valign="top">发送对象：</th>
            	<td><img src="{cms>$model.headimgurl}" alt="无头像" width="80px"/></td>
            	</tr>
            
            	<tr>
            	<th style="width:120px" valign="top">昵称：</th>
            	<td>{cms>$model.nickname}</td>
            	</tr>
            	
			</if>
            	
            	<tr>
            	<th valign="top">发送内容：</th>
            	<td><textarea  class="px" id="response" name="response" style="width:580px;  height:180px"></textarea></td>	
            	</tr>
            	
            	<tr>
                  <th></th>
                  	<td><input type="submit" value="发送" name="sbmt" class="btnGreen left" />　
                  		<a href="{cms>:U('SubscribeGroup/subscriberindex')}"  class="btnGray vm">取消</a>
                  	</td>
                </tr>
                
            </table>
	</form>
      
    </div>
    
</div>
<div class="clr"></div>     
<include file="Public:footer"/>	